<% add_decidim_meta_tags(
  title: translated_attribute(@page.title),
  description: translated_attribute(@page.body),
  resource: @page) %>

<%= render layout:"layouts/decidim/shared/layout_center" do %>
  <div class="py-12 space-y-12">

    <div class="text-center">
      <h1 class="h1 decorator inline-block text-left">
        <%= translated_attribute(@page.title) %>
      </h1>
    </div>

    <%= render partial: "decidim/shared/component_announcement" %>

    <div class="editor-content">
      <% if translated_attribute(@page.body).empty? || translated_attribute(@page.body) == "<p></p>" %>
        <%= cell("decidim/announcement", t("empty", scope: "decidim.pages.show")) %>
      <% else %>
        <%= decidim_sanitize_editor_admin translated_attribute(@page.body) %>
      <% end %>
    </div>
  </div>
<% end %>
